package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.dto.UserDto;
import com.hzhc.entity.TowInfo;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.TowInfoVo;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 拖挂信息 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-12-18
 */
public interface TowInfoService extends IService<TowInfo> {

    ResultUtil<T> getTowNo(TowInfo towInfo);

    List<TowInfo> getList(Page<TowInfo> page, TowInfoVo vo);

    ResultUtil<T> addRet(TowInfo towInfo);

    ResultUtil<T> updateRet(TowInfo towInfo);

    ResultUtil<T> delTowInfo(TowInfo towInfo);

    ResultUtil<T> importTowList(HttpServletRequest request, List<TowInfo> towList);

    void exportTowFile(HttpServletRequest request, HttpServletResponse response, String exportExcelPathCms);

    ResultUtil<List<TowInfoVo>> towUpload(UserDto user, MultipartFile file,String path);
}
